import { defineStore } from "pinia";
import { reactive, ref } from "vue";
import type {RequestOldRoutesState} from './types/index'
// 保存后端返回的原始路由表
export const useRequestOldRoutes = defineStore('requestOldRoutes',()=>{
    const state = reactive<RequestOldRoutesState>({
        requestOldRoutes: []
    })

    function setRequestOldRoutes(routes:Array<any>){
        state.requestOldRoutes = routes
    }
    return {
        state,
        setRequestOldRoutes
    }
})